﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SHKF.B2C.JuShuiTan.Model.Inter.OrdersQuery
{
    public class OrderItem
    {
        /// <summary>
        /// 是否赠品 
        /// </summary>
        public bool is_gift { get; set; }

        /// <summary>
        /// 商品编码，对应普通商品资料页面商品编码，对应库存管理的SKU
        /// </summary>
        public string sku_id { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 申请退款的状态,未申请：none；退款中：waiting；退款成功：success；退款关闭：closed
        /// </summary>
        public string refund_status { get; set; }

        /// <summary>
        /// 退款的唯一单号 
        /// </summary>
        public string refund_id { get; set; }

        private decimal _price;
        /// <summary>
        /// 单价
        /// </summary>
        public decimal price
        {
            get { return _price; }
            set { _price = value; }
        }

        /// <summary>
        /// 子订单号，最长不超过50
        /// </summary>
        public string outer_oi_id { get; set; }

        /// <summary>
        /// 商品状态；None：无；
        /// WaitPay：待付款；
        /// WaitConfirm：等待审核；
        /// Question：异常；
        /// WaitDeliver：平台接口告知ERP订单项解锁可发货的状态； 
        /// WaitFConfirm：等待财务审核；
        /// Delivering：发货中；
        /// WaitOuterSent：等待外仓发货；
        /// Sent：已发货；
        /// OuterSent：外仓发货；
        /// Merged：被合并；
        /// Cancelled：用户取消订单；
        /// Replaced：被替换（明细）；
        /// Split：被拆分； 
        /// Delete：删除；
        /// Lock：锁定；
        /// SentCancelled：发货后取消
        /// </summary>
        public string item_status { get; set; }

        /// <summary>
        /// 款式编码
        /// </summary>
        public string i_id { get; set; }

        /// <summary>
        /// 属性
        /// </summary>
        public string properties_value { get; set; }

        /// <summary>
        /// 子订单号，最长不超过20
        /// </summary>
        public string oi_id { get; set; }

        /// <summary>
        /// 总额
        /// </summary>
        public decimal amount { get; set; }

        /// <summary>
        /// 店铺商品编码，对应店铺商品资料页面平台店铺商品编码
        /// </summary>
        public string shop_sku_id { get; set; }

        /// <summary>
        /// 原始线上单号 
        /// </summary>
        public string raw_so_id { get; set; }

        public int qty { get; set; }

        /// <summary>
        /// 是否预售
        /// </summary>
        public bool is_presale { get; set; }

        /// <summary>
        /// 基本售价（原价）
        /// </summary>
        public decimal base_price { get; set; }

        /// <summary>
        /// 商品类型；nomal：普通商品；combine：组合装商品；no_deliver：不发货
        /// </summary>
        public string sku_type { get; set; }

        /// <summary>
        /// 店铺款式编码 
        /// </summary>
        public string shop_i_id { get; set; }

        /// <summary>
        /// 买家实付 
        /// </summary>
        public string buyer_paid_amount { get; set; }

        /// <summary>
        /// 卖家实收 
        /// </summary>
        public string seller_income_amount { get; set; }
    }
}
